<?php

use Illuminate\Database\Seeder;

class MemberTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $faker = Faker\Factory::create('zh_CN');
        for ($i = 0; $i < 100; $i++) {
            $data = [
                'username' => $faker->name,
                'password' => bcrypt('admin88'),
                'email' => $faker->email,
                'phoneNumber' => $faker->phoneNumber,
                'type' => $faker->numberBetween(1, 3), // 1. 普通会员 2. 讲师 3. 总监....
                'avatar' => $faker->imageUrl(),
                'gender' => $faker->numberBetween(1, 2),
                'money' => $faker->numberBetween(1, 30000),
                'education' => $faker->numberBetween(1,5), // 1.大专 2. 专科 3. 本科 4. 硕士 5. 博士
                'job' => $faker->paragraph, // 之前的工作经历
            ];
            \App\Http\Models\Member::create($data);
        }
    }
}
